export namespace="coroot-system"
export otl_demo="otel-demo"
export otl_helm="$repo/$otl_demo"
export app_name="coroot-operator"
export repo="coroot"
export helm="$repo/$app_name"
export url="https://coroot.github.io/helm-charts"

helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

# helm search repo kubeblocks --devel --versions

helm upgrade --create-namespace --install \
  -n $namespace $app_name $helm  \
  -f values.yaml --devel

# helm upgrade $otl_demo $otl_helm --create-namespace --install \
#     -n $namespace

# helm upgrade --install opentelemetry-collector open-telemetry/opentelemetry-collector \
# -n coroot-system --set image.repository="otel/opentelemetry-collector-k8s"
#  m.daocloud.io/registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.5.0


# ...
# env:
# - name: PGPASSWORD
#   valueFrom: { secretKeyRef: { name: coroot.pg.credentials, key: password } }
# - name: PG_CONNECTION_STRING
#   value: "host=coroot-db user=coroot password=$(PGPASSWORD) dbname=coroot sslmode=require connect_timeout=1"
# ...
